#!/bin/sh
gcc -o recv recv.c
gcc -o send send.c
iface_name=`cat ../config/lan_setup.conf | grep LAN_IF | awk '{print $2}'`
ip_address=`cat ../config/lan_setup.conf | grep LAN_IF | awk '{print $3}'`
node_name=`cat ../config/node_name_setup.conf | grep NODE_NAME | awk '{print $2}'`
echo $iface_name $ip_address $node_name
echo "\nWelcome to MyMANET Chat Application\n"
./recv $iface_name &
./send $iface_name $ip_address $node_name 

